MARKETPLACE
PLUGINS
FLUX AI IMAGE GEN [REPLICATE]
Flux AI Image Gen [Replicate] logo

Flux AI Image Gen [Replicate]

Published August 2024
   •    Updated August 2025

Plugin details

*Added superfast Flux generation* Easily use Flux AI model in Bubble to generate incredible images. It uses Replicate API. SUPPORT : Flux pro, Flux dev, Flux dev-realism, Flux schnell


For this plugin to work you'll need a replicate.com account. You will need to create an API key and to add a credit card. The plugin doesn't pay for your Replicate API usage !

$12

One time  •  Or  $5/mo

stars   •   0 ratings
13 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

Panja logo
Panja
Joined 2019   •   12 Plugins
View contributor profile

Instructions

- Go to replicate.com - Create an account
- Add your payment method
- Generate an API key
- Add the API key in the plugin tab on Bubble
- Use the functions in your workflows actions

For each action you will have the option to specify a webhook or not :
- If empty, the workflow will be blocked until the generation is completed. It can be used in client-side only on very fast model (because it timeout after 30s). It is advised to use them in backend workflow only.
- If a webhook is set, the action will return a prediction_id that you can use at later use. The webhook url specified will be called once the generation is completed.

To expose an API with URL to use as a Webhook you can check this tuto on YouTube (from 30min) : https://youtu.be/T6zXcy5uLmI?si=GYlm3852Do2Yc0W4&t=1802


For fast generation :  use go_fast and megapixel at 0.25 (generate image in 0.3s)


Workflow :
- Create a new type in your BDD example : "Generated Images"
- Give it few fields like :
--- prompt
--- prediction_id
--- user
--- imgs
--- ...
- Add an input in your page and a button
- Add a workflow When the button element is clicked
- Add the action to create a flux image and set the webhook :
- Add a backend workflow that will be the webhook when the prediction is completed
- In this backend workflow you will get the "Generated Images" thanks to the prediction_id that will be in the data returned to your webhook
- Make a change to the "Generated Images" found with the prediction_id and set it the list of the images returned to your webhook
- On your front-end add a repeating group to display the images of your "Generated Images"


Editor : https://bubble.io/page?id=vima-plugin-replicate&test_plugin=1696261966525x696943153136009200_current&tab=Workflow&name=replicate-flux&type=page

Video demo : https://youtu.be/Gt97uqy-xGo

any bug or suggestion, any model you'd like to see added ?
contact [email protected]

Types

This plugin can be found under the following types:
Api   •   Action   •   Background Services

Categories

This plugin can be found under the following categories:
AI   •   Media

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble